﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AirtightnessConfigList.aspx.cs" Inherits="Airtightness_AirtightnessConfigList" Title="气密参数配置" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="../js/my97datepicker/WdatePicker.js"></script>
   <asp:SiteMapPath ID="SiteMapPath1" runat="server">
        </asp:SiteMapPath>
        <br />
        <br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div>
                <div>
                    <br />
                    <p style="text-align:center;">
                        输入产品类型S代码快速查找：<asp:TextBox ID="tbProductTypeSn" runat="server"></asp:TextBox>
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="butQuery" runat="server" Text="查  询" onclick="butQuery_Click" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="butAllPtList" runat="server" Text="返回所有产品类型列表" 
                            onclick="butAllPtList_Click" />
                    </p>
                    产品类型气密信息列表：
                </div>
                <div style="text-align: center;">
                    <asp:GridView ID="GridView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        BackColor="White" BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3"
                        CellSpacing="1" DataKeyNames="ProductTypeID,SpecValue,ID" GridLines="None" OnPageIndexChanging="GridView_PageIndexChanging"
                        OnRowCancelingEdit="GridView_RowCancelingEdit" OnRowCommand="GridView_RowCommand"
                        OnRowDataBound="GridView_RowDataBound" OnRowDeleting="GridView_RowDeleting"
                        OnRowEditing="GridView_RowEditing" OnRowUpdating="GridView_RowUpdating" PageSize="20"
                        Width="100%">
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:TemplateField HeaderText="产品类型">
                                <EditItemTemplate>
                                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("ProductTypeID") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="通道号">
                                <EditItemTemplate>
                                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("ChannelNo") %>'></asp:Label>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("ChannelNo") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="SpecValue" HeaderText="规格值" />
                            <asp:BoundField DataField="InflateDuration" HeaderText="充气时间" />
                            <asp:BoundField DataField="BalanceDuration1" HeaderText="平衡1时间" />
                            <asp:BoundField DataField="BalanceDuration2" HeaderText="平衡2时间" />
                            <asp:BoundField DataField="MeasureDuration" HeaderText="测试时间" />
                            <asp:BoundField DataField="LeakSpec" HeaderText="正泄漏标准值" />
                            <asp:BoundField DataField="MinusLeakSpec" HeaderText="负泄漏标准值" />
                            <asp:BoundField DataField="ProductCubage" HeaderText="产品容积" />
                            <asp:CommandField HeaderText="更改" ShowEditButton="True" />
                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                            <asp:ButtonField CommandName="Insert" HeaderText="新增" Text="新增" />
                        </Columns>
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <EmptyDataTemplate>
                            <asp:DetailsView ID="DetailsView" runat="server" AutoGenerateInsertButton="True"
                                AutoGenerateRows="False" BackColor="White" BorderColor="White" BorderStyle="Ridge"
                                BorderWidth="2px" CellPadding="3" CellSpacing="1" DefaultMode="Insert" GridLines="None"
                                Height="50px" OnItemInserting="DetailsView_ItemInserting" OnModeChanging="DetailsView_ModeChanging">
                                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                                <Fields>
                                    <asp:BoundField DataField="ProductTypeID" HeaderText="产品类型" />
                                    <asp:BoundField DataField="ChannelNo" HeaderText="通道号" />
                                    <asp:BoundField DataField="SpecValue" HeaderText="规格值" />
                                    <asp:BoundField DataField="InflateDuration" HeaderText="充气时间" />
                                    <asp:BoundField DataField="BalanceDuration1" HeaderText="平衡1时间" />
                                    <asp:BoundField DataField="BalanceDuration2" HeaderText="平衡2时间" />
                                    <asp:BoundField DataField="MeasureDuration" HeaderText="测试时间" />
                                    <asp:BoundField DataField="LeakSpec" HeaderText="正泄漏标准值" />
                                    <asp:BoundField DataField="MinusLeakSpec" HeaderText="负泄漏标准值" />
                                    <asp:BoundField DataField="ProductCubage" HeaderText="产品容积" />
                                </Fields>
                                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                                <EditRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                            </asp:DetailsView>
                        </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                    <br />
                    <br />
                </div>
                <br />
                <br />
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

